<div id="members">

  <% if artist.members.empty? %>
    There are no members in this band. Edit this page to add one.

  <% else %>

    <% artist.members.each do |member| %>
      <div class="member-pane">
 
        <% if member.member.primary_image.nil? %>
          <img src="/images/REDUX.jpg" alt="Member Art" width="100" height="100">
        <% else %>
          <%= image_tag member.member.primary_image.url(:medium) %>
        <% end %>

        <%= link_to member.member.name, member.member %><br />
		<% member.membership_dates.each do |d| %>
		  <%=h d.event %>:
		  <%=h d.date_string_with_month %>
		  <br />
		<% end %>
        Role:<%=h member.role %><br />
      </div><!-- /member-pane -->

    <% end %>
  <% end %>
</div><!-- /members -->
